package taks1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-05-07
 * Time:11:34
 */
public class Retangle extends Shape {
    private double len;
    private double wid;

    public Retangle(double len, double wid) {
        this.len = len;
        this.wid = wid;
    }

    @Override
    public double getArea() {
        return len * wid;
    }

    @Override
    public double getPer() {
        return 2 * (len + wid);
    }
}
